package jonggyuni.basic;

import java.util.Scanner;

public class J17_PerformanceMain {
	
	private static String title ="공연 예약 프로그램";
	private static String menu ="예약<1>, 조회<2>, 취소<3>, 끝내기<4>>>";
	private static String seat = "좌석구분 S<1>, A<2>, B<3>>>";
	private static String check = "<<<조회를 완료하였습니다>>>";
	private static String exitmsg = "프로그램을 종료합니다";
	
	public static void main(String[] args){
		
		J17_seatS pfm = new J17_seatS();
		
		Scanner sc = new Scanner(System.in);
		
		System.out.println(title);
		
		while(true){
			System.out.print(menu);
			switch(sc.nextInt()){
			case 1: 
				System.out.println("-----");
				reservSeat(sc); break;
			case 2: showSeat(sc); break;
			case 3: cancelSeat(); break;
			case 4:
				sc.close();
				System.out.println(exitmsg);
				System.exit(0);
				break;
			
			}//switch
			
			
		}//while
			
	}//main

	private static void cancelSeat() {
		
	}

	private static void showSeat(Scanner sc) {
		
		System.out.println("S석");
		System.out.println("A석");
		System.out.println("B석");
		
		System.out.println(check);

	}

	private static void reservSeat(Scanner sc) {
		System.out.print(seat);
		J17_PerformanceVO pvo = new J17_PerformanceVO(sc.next(), sc.nextInt());
		//pfm.reservation(pvo);
		System.out.println("");
	}
	
	
	
}//class
